package org.jks.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.jks.config.Config;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/wuziMgr")
public class WuziManager {
	@RequestMapping("/")
	public ModelAndView index(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/index", model);
	}
	
	@RequestMapping("/index")
	public ModelAndView index1(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/index", model);
	}
	
	@RequestMapping("/wz_apply")
	public ModelAndView wuziApply(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/wz_apply", model);
	}
	
	@RequestMapping("/add_wz_apply")
	public ModelAndView wuziAddApply(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/add_wz_apply", model);
	}
	
	@RequestMapping("/wz_ly")
	public ModelAndView wz_ly(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/wz_ly", model);
	}
	
	@RequestMapping("/add_wz_recipient")
	public ModelAndView wuziAddRecipient(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/add_wz_recipient", model);
	}
	
	@RequestMapping("/bybp")
	public ModelAndView bybp(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/bybp", model);
	}
	
	@RequestMapping("/add_bybp")
	public ModelAndView addBybp(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/add_bybp", model);
	}
	
	@RequestMapping("/device_mgr")
	public ModelAndView deviceMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/device_mgr", model);
	}
	
	@RequestMapping("/add_device")
	public ModelAndView addDevice(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/add_device", model);
	}
	
	@RequestMapping("/add_device_acceptance")
	public ModelAndView add_device_acceptance(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/add_device_acceptance", model);
	}
	
	@RequestMapping("/wzlx")
	public ModelAndView wzlx(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/wzlx", model);
	}
	
	@RequestMapping("/wzzt")
	public ModelAndView wzzt(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/wzzt", model);
	}
	
	@RequestMapping("/sb_io")
	public ModelAndView sbIO(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/sb_io", model);
	}
	
	@RequestMapping("/sb_ys")
	public ModelAndView sbYS(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/sb_ys", model);
	}
	
	@RequestMapping("/sb_bf")
	public ModelAndView sbBf(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/sb_bf", model);
	}
	
	@RequestMapping("/sbwh")
	public ModelAndView sbwh(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/sbwh", model);
	}
	
	@RequestMapping("/sb_status")
	public ModelAndView sbStatus(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("wuziMgr/sb_status", model);
	}

}
